﻿<?xml version="1.0" encoding="utf-8"?>

<FieldTypes>

	<FieldType>

		<Field Name="TypeName">ImageEnhancerCustomField</Field>

		<Field Name="ParentType">Text</Field>

		<Field Name="TypeDisplayName">Enhanced Image</Field>

		<Field Name="TypeShortDescription">Enhanced Image</Field>

		<Field Name="UserCreatable">TRUE</Field>

		<Field Name="ShowInListCreate">TRUE</Field>

		<Field Name="ShowInSurveyCreate">TRUE</Field>

		<Field Name="ShowInDocumentLibrary">TRUE</Field>

		<Field Name="ShowInColumnTemplateCreate">TRUE</Field>

		<Field Name="Sortable">TRUE</Field>

		<Field Name="Filterable">TRUE</Field>

		<Field Name="FieldTypeClass">ImageEnhancer.ImageEnhancerCustomField, ImageEnhancer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bd75aa4d37c18792</Field>

		<Field Name="SQLType">nvarchar</Field>


		<RenderPattern Name="DisplayPattern">
			<Switch>
				<Expr>
					<Column />
				</Expr>
				<Case Value="" />
				<Default>
					<HTML>
					<![CDATA[<SCRIPT>  function PopupPic(sPicURL) { window.open( "/_layouts/ImageEnhancer/popup.aspx?"+sPicURL, "", "HEIGHT=50,WIDTH=50"); }  var path=']]></HTML>
					<Column/>
					<HTML>
						<![CDATA['; if (path != "," || path != "" || path != " ") {var xsep=path.lastIndexOf(','); var lastind=path.length;						document.write("<a href=\"javascript:PopupPic('" + path.substring(0,xsep) + "')\">						<IMG border=0 SRC='"+ path.substring(xsep+1,lastind)+"' ALT='" + 						path.substring(xsep+1,lastind) + "' > </a>");}</SCRIPT>]]>
					</HTML>

					

				</Default>
			</Switch>
		</RenderPattern>
	</FieldType>

</FieldTypes>


<!--
<a href="http://www.goldcoastwebdesigns.com/web.jpg" target="_blank">
<img src="http://www.goldcoastwebdesigns.com/tn-web.jpg"></a> 


<HTML><![CDATA[';var xsep=path.lastIndexOf(','); var lastind=path.length;document.write("<IMG SRC='"+ path.substring(xsep,lastind) 
+"' ALT='" + path.substring(xsep,lastind) + "' >");</SCRIPT>]]></HTML>

<HTML><![CDATA[';document.write(path.substring(0,10)); </SCRIPT>]]></HTML>
<HTML><![CDATA[';document.write(path.substring(0,10)); </SCRIPT>]]></HTML>
<HTML><![CDATA[';document.write("<IMG SRC='"+ path.substring(,x.lastIndexOf(',')) +"' ALT='" + path + "' >");</SCRIPT>]]></HTML>
<HTML><![CDATA[;document.write("<IMG SRC='"+ path +"' ALT='" + path + "' >");</SCRIPT>]]></HTML>
<IMG SRC='"+ path +"' ALT='" + path + "' >
<IMG SRC=" /SITES/DEVELOP/PICTURES/WINTER.JPG,/SITES/DEVELOP/PICTURES/_T/WINTER_JPG.JPG" 
ALT="/SITES/DEVELOP/PICTURES/WINTER.JPG,/SITES/DEVELOP/PICTURES/_T/WINTER_JPG.JPG ">
<Column HTMLEncode="TRUE" />
<HTML>
						<![CDATA[ <IMG SRC="]]>
					</HTML>
					<Column HTMLEncode="TRUE" />
					<HTML>" ALT="</HTML>
					<Column2 HTMLEncode="TRUE" />
					 <HTML>
						 <![CDATA[ ">  ]]>
					</HTML>
-->
